export default {
  namespaced: true,
  state: {
    trueOrFalseList: [
      { value: 0, text: '否' },
      { value: 1, text: '是' }
    ],
    // 项目聚焦键值对储存 projectId:structureId
    projectFocusId: {},
    // 项目角色权限键值对存储 projectPermissions
    projectPermissions: {},
    // 限制项目是否可编辑 初始值false
    projectIfEdit: false,
    // 项目组织
    projectOrgId: null,
    // 项目产线
    projectPlineIds: null,
    appId: {
      dfmea: 'DFMEA',
      pfmea: 'PFMEA',
      mfmea: 'MFMEA'
    },
    // 节点类型（废弃，用下面的）
    nodeTypes: {
      // 产品
      1: {
        text: '产品'
      },
      // 工序
      2: {
        text: '工序'
      },
      // 工位
      3: {
        text: '工位'
      },
      // 要素
      4: {
        text: '要素'
      },
      // 零件
      5: {
        text: '零件'
      },
      // 界面
      6: {
        text: '界面',
        color: '#1890FF'
      },
      // 内部接口
      10: {
        text: '内部接口',
        color: '#4169E1',
        noneIcon: 'M2.2,2.4c0.3,0,0.7,0,1,0.1c0.2,0,0.5,0.1,0.7,0.3C4.1,3,4.2,3.3,4.2,3.5v9c0,0.2-0.1,0.5-0.3,0.7   c-0.2,0.2-0.5,0.3-0.7,0.3c-0.3,0.1-0.7,0.1-1,0.1V14h5v-0.4c-0.3,0-0.7,0-1-0.1c-0.2,0-0.5-0.1-0.7-0.3c-0.2-0.2-0.3-0.5-0.3-0.7   v-9c0-0.2,0.1-0.5,0.3-0.7C5.7,2.6,6,2.5,6.2,2.5c0.3-0.1,0.7-0.1,1-0.1V2h-5V2.4z M12.1,2.8c0.2-0.2,0.5-0.3,0.7-0.3c0.3-0.1,0.7-0.1,1-0.1V2h-5v0.4c0.3,0,0.7,0,1,0.1c0.2,0,0.5,0.1,0.7,0.3   c0.2,0.2,0.3,0.5,0.3,0.7v9c0,0.2-0.1,0.5-0.3,0.7c-0.2,0.2-0.5,0.3-0.7,0.3c-0.3,0.1-0.7,0.1-1,0.1V14h5v-0.4c-0.3,0-0.7,0-1-0.1   c-0.2,0-0.5-0.1-0.7-0.3c-0.2-0.2-0.3-0.5-0.3-0.7v-9C11.8,3.3,11.9,3,12.1,2.8z'
      },
      // 外部接口
      11: {
        text: '外部接口',
        color: '#333399',
        noneIcon: 'M4.3,13.7c-0.5-0.3-1-0.7-1.3-1.3s-0.4-1.2-0.4-2V5.6c0-0.8,0.1-1.4,0.4-2c0.3-0.6,0.7-1,1.3-1.3C4.8,2,5.5,1.8,6.2,1.8   C7,1.8,7.6,2,8.2,2.3c0.5,0.3,1,0.7,1.2,1.3c0.3,0.6,0.4,1.2,0.4,2v4.8c0,0.8-0.1,1.4-0.4,2s-0.7,1-1.2,1.3C7.6,14,7,14.2,6.2,14.2   C5.5,14.2,4.8,14,4.3,13.7z M7.4,12.5c0.3-0.2,0.6-0.4,0.8-0.8s0.3-0.8,0.3-1.2V5.5c0-0.5-0.1-0.9-0.3-1.2C8,3.9,7.7,3.7,7.4,3.5   C7.1,3.3,6.7,3.2,6.2,3.2S5.4,3.3,5.1,3.5C4.7,3.7,4.5,3.9,4.3,4.3C4.1,4.6,4,5,4,5.5v4.9c0,0.5,0.1,0.9,0.3,1.2   c0.2,0.3,0.4,0.6,0.8,0.8c0.3,0.2,0.7,0.3,1.2,0.3S7.1,12.7,7.4,12.5z M13.4,14H12V2h1.4V14z'
      },
      // 功能
      12: {
        text: '功能',
        color: '#228B22',
        noneIcon: 'M15.3,8.2l-0.6-0.4c0.1-0.3,0.1-0.7,0.1-1.1c0-0.4,0-0.7-0.1-1.1l0.6-0.4c0.5-0.3,0.6-0.9,0.4-1.4l-0.5-0.9   c-0.1-0.2-0.3-0.4-0.6-0.5c-0.3-0.1-0.5,0-0.8,0.1l-0.6,0.4C12.6,2.6,12,2.2,11.3,2V1.2c0-0.6-0.4-1-1-1h-1c-0.6,0-1,0.4-1,1V2   c-0.5,0.2-1,0.4-1.4,0.8c0,0,0,0-0.1,0H5.8H5.8c-0.6,0-1,0.4-1,1v0.7v0v0.1C4.4,4.6,4.1,4.7,3.9,4.9c-0.4,0.2-0.7,0.4-1,0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.4-0.3,0.9-0.5,1.5-0.5c0.4,0,0.7,0.1,1,0.2C8.1,7.3,8.6,8.1,8.7,9c0,0.1,0,0.1,0,0.2c0,0.8-0.4,1.6-1,2  C7.3,11.6,6.8,11.8,6.3,11.8z M11.2,8.8c0-0.2-0.1-0.4-0.1-0.6l0.6-0.4c0.2-0.1,0.4-0.3,0.4-0.5C12.1,7.9,11.7,8.4,11.2,8.8z'
      },
      // 特性
      13: {
        text: '特性',
        color: '#00008B',
        noneIcon: 'M4,1v3H1v11h11v-3h3V1H4z M11,14H2V5h2h1h6v6v1V14z M14,11h-2V4H5V2h9V11z',
        leftIcon: 'M15,1H4v3H1v11h11v-3h3V1z M14,11h-2V4H5V2h9V11z',
        rightIcon: 'M15,1H4v3H1v11h11v-3h3V1z M11,14H2V5h2v7h7V14z',
        fullIcon: 'M1,4h11v11H1V4z M4,1v2h9v9h2V1H4z'
      },
      // 失效
      14: {
        text: '失效',
        color: '#FF3030',
        noneIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        leftIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1  h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        rightIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z',
        fullIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z'
      },
      // 失效影响
      15: {
        text: '失效影响',
        color: '#EE7AE9',
        noneIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        leftIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1  h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        rightIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z',
        fullIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z'
      },
      // 失效模式
      16: {
        text: '失效模式',
        color: '#FF3030',
        noneIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        leftIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1  h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        rightIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z',
        fullIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z'
      },
      // 失效原因
      17: {
        text: '失效原因',
        color: '#EE9A00',
        noneIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        leftIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M8.9,8.5l0.6-1.1L10,6.5l1.5-2.6v2.6v1h1  h0.6l-0.6,1.1L12,9.5l-1.5,2.6V9.5v-1h-1H8.9z',
        rightIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z M6,9.5l-1.5,2.6V9.5v-1h-1H2.9l0.6-1.1  L4,6.5l1.5-2.6v2.6v1h1h0.6L6.5,8.6L6,9.5z',
        fullIcon: 'M14.9,6.5h-2.4V0.1L8.9,6.5H6.5V0.1L1.1,9.5h2.4v6.4l3.6-6.4h2.4v6.4L14.9,6.5z'
      },
      // 探测措施
      18: {
        text: '预防措施',
        color: '#800000',
        noneIcon: 'M6.3,2.7C5.8,2.4,5.1,2.3,4.5,2.3H1.4H0.8H0v11.5h1.4V9.3h3.1c0.7,0,1.3-0.1,1.8-0.4c0.5-0.3,0.9-0.7,1.2-1.2   c0.3-0.5,0.4-1.1,0.4-1.8S7.8,4.6,7.5,4.1C7.2,3.4,6.8,3,6.3,2.7z M6.3,6.9C6.1,7.3,5.9,7.5,5.6,7.7C5.3,7.9,4.9,8,4.5,8H1.4V3.6   h3.1c0.4,0,0.8,0.1,1.1,0.3C5.9,4,6.1,4.3,6.3,4.6C6.4,5,6.5,5.3,6.5,5.8C6.5,6.2,6.4,6.6,6.3,6.9z M14.1,11.5c-0.2,0.3-0.5,0.5-0.9,0.7c-0.3,0.2-0.7,0.2-1,0.2c-0.5,0-0.9-0.1-1.3-0.3c-0.4-0.2-0.7-0.6-0.9-1   s-0.3-0.9-0.3-1.5v-3C9.7,5.9,9.8,5.4,10,5s0.5-0.8,0.9-1c0.4-0.2,0.8-0.4,1.3-0.4c0.4,0,0.7,0.1,1,0.2c0.3,0.2,0.6,0.4,0.9,0.7   c0.2,0.3,0.4,0.6,0.5,1H16c-0.1-0.6-0.4-1.2-0.7-1.7c-0.4-0.5-0.8-0.9-1.3-1.1c-0.5-0.3-1.1-0.4-1.7-0.4c-0.8,0-1.4,0.2-2,0.5   S9.3,3.6,9,4.2C8.5,5,8.4,5.7,8.4,6.5v3c0,0.8,0.2,1.5,0.5,2.1s0.8,1.1,1.3,1.4c0.6,0.3,1.2,0.5,2,0.5c0.6,0,1.2-0.1,1.7-0.4   c0.5-0.3,1-0.6,1.3-1.1c0.4-0.5,0.6-1,0.7-1.7h-1.3C14.5,10.8,14.4,11.2,14.1,11.5z'
      },
      // 预防措施
      19: {
        text: '探测措施',
        color: '#556B2F',
        noneIcon: 'M14.1,11.5c-0.2,0.3-0.5,0.5-0.9,0.7c-0.3,0.2-0.7,0.2-1,0.2c-0.5,0-0.9-0.1-1.3-0.3c-0.4-0.2-0.7-0.6-0.9-1   s-0.3-0.9-0.3-1.5v-3C9.7,5.9,9.8,5.4,10,5s0.5-0.8,0.9-1c0.4-0.2,0.8-0.4,1.3-0.4c0.4,0,0.7,0.1,1,0.2c0.3,0.2,0.6,0.4,0.9,0.7   c0.2,0.3,0.4,0.6,0.5,1H16c-0.1-0.6-0.4-1.2-0.7-1.7c-0.4-0.5-0.8-0.9-1.3-1.1c-0.5-0.3-1.1-0.4-1.7-0.4c-0.8,0-1.4,0.2-2,0.5   S9.3,3.6,9,4.2C8.5,5,8.4,5.7,8.4,6.5v3c0,0.8,0.2,1.5,0.5,2.1s0.8,1.1,1.3,1.4c0.6,0.3,1.2,0.5,2,0.5c0.6,0,1.2-0.1,1.7-0.4   c0.5-0.3,1-0.6,1.3-1.1c0.4-0.5,0.6-1,0.7-1.7h-1.3C14.5,10.8,14.4,11.2,14.1,11.5z M5.9,2.8C5.3,2.5,4.5,2.4,3.6,2.4H1.4H1.1H0v11.2h1.1h0.3h2.2c0.9,0,1.7-0.2,2.3-0.5s1.1-0.8,1.4-1.4   c0.3-0.6,0.5-1.3,0.5-2.2V6.4c0-0.9-0.2-1.6-0.5-2.2S6.6,3.1,5.9,2.8z M6.5,9.7c0,0.9-0.2,1.5-0.7,2s-1.2,0.7-2.1,0.7H1.4V3.7h2.3   c0.9,0,1.7,0.2,2.1,0.7c0.5,0.5,0.7,1.1,0.7,2C6.5,6.4,6.5,9.7,6.5,9.7z'
      }
    },
    // 节点类型
    nodeType: {
      // 产品
      product: { value: 1, text: '产品' },
      // 工序
      process: { value: 2, text: '工序' },
      // 工位
      step: { value: 3, text: '工位' },
      // 要素
      element: { value: 4, text: '要素' },
      // 零件
      bom: { value: 5, text: '零件' },
      // 界面
      bomOut: { value: 6, text: '界面' },
      // 内部接口
      interfaceInside: { value: 10, text: '内部接口' },
      // 外部接口
      interfaceOutside: { value: 11, text: '外部接口' },
      // 功能
      function: { value: 12, text: '功能', color: '#228B22' },
      // 特性
      character: { value: 13, text: '特性', color: '#00008B' },
      // 失效
      failure: { value: 14, text: '失效', color: '#FF3030' },
      // 失效影响
      failureEffect: { value: 15, text: '失效影响', color: '#EE7AE9' },
      // 失效模式
      failureMode: { value: 16, text: '失效模式', color: '#FF3030' },
      // 失效原因
      failureReason: { value: 17, text: '失效原因', color: '#EE9A00' },
      // 预防措施
      measurePrevent: { value: 18, text: '预防措施', color: '#800000' },
      // 探测措施
      measureDetection: { value: 19, text: '探测措施', color: '#556B2F' }
    },
    // AP
    apList: {
      'H': {
        class: 'col-ap-high'
      },
      'M': {
        class: 'col-ap-middle'
      },
      'L': {
        class: 'col-ap-low'
      }
    },
    // 要素类型
    elementTypeList: [
      { value: 1, text: '人' },
      { value: 2, text: '机' },
      { value: 3, text: '料' },
      { value: 4, text: '法' },
      { value: 5, text: '环' },
      { value: 6, text: '测' }
    ],
    // 措施分类
    measureTypeList: [
      { value: '1', text: '防呆' },
      { value: '2', text: '防错' },
      { value: '3', text: '非防呆防错' }
    ],
    // 抽样方案
    samplingPlan: [
      { value: '1', text: 'GB_T2828' },
      { value: '2', text: '百分比' },
      { value: '3', text: '固定抽样' },
      { value: '4', text: 'MIL-STD-1916' },
      { value: '5', text: 'C=0' }
    ],
    // 抽样水平
    samplingLevel: {
      GB: ['S - 1', 'S - 2', 'S - 3', 'S - 4', 'Ⅰ', 'Ⅱ', 'Ⅲ'],
      MIL: ['Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ']
    },
    // AQL水平
    aql: {
      arrAQL: [0.01, 0.015, 0.025, 0.04, 0.065, 0.1, 0.15, 0.25, 0.4, 0.65, 1, 1.5, 2.5, 4, 6.5, 10, 15, 25, 40, 65, 100, 150, 250, 400, 650, 1000]
    },
    // 优化状态
    optimizeStatusList: [
      { value: 0, text: '开放的' },
      { value: 1, text: '计划中' },
      { value: 2, text: '不执行' },
      { value: 3, text: '已完成' }
    ],
    // 优化行动状态
    optimizeStepStatusList: [
      { value: 0, text: '待分配' },
      { value: 1, text: '整改中' },
      { value: 2, text: '跟踪中' },
      { value: 3, text: '待审批' },
      { value: 4, text: '审批通过' },
      { value: 5, text: '审批不通过' }
    ],
    // 知识库版本状态
    knowledgeVersionStatusList: [
      { value: '0', text: '草稿' },
      { value: '1', text: '正式' }
    ],
    // 评分
    scoreNumberList: [
      { value: '1' },
      { value: '2' },
      { value: '3' },
      { value: '4' },
      { value: '5' },
      { value: '6' },
      { value: '7' },
      { value: '8' },
      { value: '9' },
      { value: '10' }
    ],
    // 项目版本状态
    projectVersionStatus: [
      { value: '0', text: '草稿' },
      { value: '1', text: '正式版本' },
      { value: '2', text: '历史' },
      { value: '3', text: '审批中' }
    ],
    // 知识库类型
    knowledgeType: {
      // 工序库
      PFMEA_PROCESS: 1,
      // 工位库
      PFMEA_STEP: 2,
      // 要素库
      PFMEA_ELEMENT: 3,
      // 过程功能库
      PFMEA_STEP_FUNCTION: 4,
      // 要素功能库
      PFMEA_ELEMENT_FUNCTION: 5,
      // 产品特性库
      PFMEA_STEP_CHARACTER: 6,
      // 过程特性库
      PFMEA_ELEMENT_CHARACTER: 7,
      // 过程失效库
      PFMEA_STEP_FAILURE: 8,
      // 要素失效库
      PFMEA_ELEMENT_FAILURE: 9,
      // 预防措施库
      PFMEA_PREVENT: 10,
      // 探测措施库
      PFMEA_DETECTION: 11,

      // 零件库
      DFMEA_BOM: 20,
      // 产品功能库
      DFMEA_PRODUCT_FUNCTION: 21,
      // 零件功能库
      DFMEA_BOM_FUNCTION: 22,
      // 产品特性库
      DFMEA_PRODUCT_CHARACTER: 23,
      // 零件特性库
      DFMEA_BOM_CHARACTER: 24,
      // 产品失效库
      DFMEA_PRODUCT_FAILURE: 25,
      // 零件失效库
      DFMEA_BOM_FAILURE: 26,
      // 预防措施库
      DFMEA_PREVENT: 27,
      // 探测措施库
      DFMEA_DETECTION: 28,

      // 零件库
      MFMEA_BOM: 40,
      // 产品功能库
      MFMEA_PRODUCT_FUNCTION: 41,
      // 零件功能库
      MFMEA_BOM_FUNCTION: 42,
      // 产品特性库
      MFMEA_PRODUCT_CHARACTER: 43,
      // 零件特性库
      MFMEA_BOM_CHARACTER: 44,
      // 产品失效库
      MFMEA_PRODUCT_FAILURE: 45,
      // 零件失效库
      MFMEA_BOM_FAILURE: 46,
      // 预防措施库
      MFMEA_PREVENT: 47,
      // 探测措施库
      MFMEA_DETECTION: 48
    },
    // 项目状态
    projectStatusList: [
      { value: '0', text: '草稿' },
      { value: '1', text: '正式' },
      { value: '2', text: '历史' },
      { value: '3', text: '审批中' }
    ],
    // 基础FMEA项目状态
    basicProjectStatusList: [
      { value: '0', text: '草稿' },
      { value: '1', text: '正式' },
      { value: '2', text: '历史' }
    ],
    // 项目审批状态
    projectApproveStatusList: [
      { value: 0, text: '驳回' },
      { value: 1, text: '通过' },
      { value: 2, text: '待提交' },
      { value: 3, text: '审批中' }
    ],
    // 特性符号类型
    symbolList: [
      { value: 'CC', text: 'CC' },
      { value: 'SC', text: 'SC' },
      { value: 'YC', text: 'YC' },
      { value: 'YS', text: 'YS' }
    ],
    // FMEA七步法
    fmeaAnalysis: {
      // 策划与准备
      planPrepare: 1,
      // 结构分析
      structureAnalysis: 2,
      // 功能分析
      functionAnalysis: 3,
      // 失效分析
      failureAnalysis: 4,
      // 风险分析
      riskAnalysis: 5,
      // 优化
      optimization: 6,
      // 结果文件化
      documentation: 7
    },
    // df特性类型
    DFMEACharacterTypeList: [
      { value: 1, text: '产品特性' },
      { value: 2, text: '零件特性' }
    ],
    // 任务状态
    taskStatusList: [
      { value: 1, text: '进行中' },
      { value: 2, text: '已完成' }
    ],
    taskStatus: {
      pending: { value: 1, text: '进行中' },
      complete: { value: 2, text: '已完成' }
    },
    // 特性分类
    characterTypes: {
      // 产品特性
      productCharacter: '1',
      // 过程特性
      stepCharacter: '2'
    },
    // 操作模块
    opratorModule: [
      { value: 1, text: '策划与准备' },
      { value: 2, text: '结构分析' },
      { value: 3, text: '功能分析' },
      { value: 4, text: '失效分析' },
      { value: 5, text: '风险分析' },
      { value: 6, text: '优化' },
      { value: 7, text: '结果文件化' }
    ],
    // 操作类型
    opratorType: [
      { value: 1, text: '新增' },
      { value: 2, text: '编辑' },
      { value: 3, text: '删除' },
      { value: 4, text: '导出' },
      { value: 5, text: '其他' }
    ],
    // 水印
    watermark: '',
    // 业务场景（DF PF 全）
    scenOptions: [
      { value: 1, text: '产品编码' },
      { value: 2, text: '产品小类' },
      { value: 3, text: '单工序' },
      { value: 4, text: '物料编码' },
      { value: 5, text: '物料编码+物料供应商' },
      { value: 6, text: '物料小类' },
      { value: 7, text: '产品编码（全工序）' },
      { value: 8, text: '产品编码（单工序）' }
    ],
    // PF业务场景
    scenOptionsPF: [
      { value: 7, text: '产品编码（全工序）' },
      { value: 8, text: '产品编码（单工序）' },
      { value: 2, text: '产品小类' },
      { value: 4, text: '物料编码' },
      { value: 5, text: '物料编码+物料供应商' },
      { value: 6, text: '物料小类' }
    ],
    // DF业务场景
    scenOptionsDF: [
      { value: 1, text: '产品编码' },
      { value: 2, text: '产品小类' },
      { value: 4, text: '物料编码' },
      { value: 6, text: '物料小类' }
    ],
    // MF业务场景
    scenOptionsMF: [
      { value: 9, text: '设备编码' }
    ],
    // 基础PFMEA业务场景
    scenOptionsBF: [
      { value: 8, text: '产品编码（单工序）' },
      { value: 2, text: '产品小类' }
    ]
  },
  mutations: {
    SET_PROJECT_FOCUS_ID: (state, { projectId, structureId }) => {
      const focusId = Object.assign({}, state.projectFocusId)
      focusId[projectId] = structureId
      state.projectFocusId = focusId
    },
    SET_PROJECT_PERMISSIONS: (state, { projectId, permissions }) => {
      const focusId = Object.assign({}, state.projectPermissions)
      focusId[projectId] = permissions
      state.projectPermissions = focusId
    },
    SET_PROJECT_IF_EDIT: (state, projectIfEdit) => {
      state.projectIfEdit = projectIfEdit
    },
    SET_PROJECT_ORG: (state, projectOrgId) => {
      state.projectOrgId = projectOrgId
    },
    SET_PROJECT_PLINE: (state, projectPlineIds) => {
      state.projectPlineIds = projectPlineIds
    },
    SET_WATER_MARK: (state, watermark) => {
      state.watermark = watermark
    }
  },
  actions: {
    SetProjectFocusId({ commit }, { projectId, structureId }) {
      commit('SET_PROJECT_FOCUS_ID', { projectId, structureId })
    },
    SetProjectPermissions({ commit }, { projectId, permissions }) {
      commit('SET_PROJECT_PERMISSIONS', { projectId, permissions })
    }
  }
}
